public class Student {
    public Student() {
    }

//    public Student(int stuId, String name, int age, char gender, String phone, String password) {
//        this.stuId = stuId;
//    }

    public Student(String name, int age, char gender, String phone, String password) {
            this.name = name;
            this.age = age;
            this.gender = gender;
            this.phone = phone;
            this.password = password;
        }

        //学号
        private int stuId;
        //姓名
        private String name;
        //年龄
        private int age;
        //性别
        private char gender;
        //电话
        private String phone;

        //密码
        private String password;
        //提供getter and setter,封装方法
        public int getStuId(){
            return this.stuId;//实际的Student类的对象
        }

        public void setStuId(int stuId) {
            this.stuId = stuId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public char getGender() {
            return gender;
        }

        public void setGender(char gender) {
            this.gender = gender;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        @Override
        public String toString() {
            return "Student{" +
                    "stuId=" + stuId +
                    ", name='" + name + '\'' +
                    ", age=" + age +
                    ", gender=" + gender +
                    ", phone='" + phone + '\'' +
                    ", password='" + password + '\'' +
                    '}';
        }
}
